package com.wj1c.push.wechat.request;

import com.wj1c.push.wechat.request.base.AbstractRequest;
import com.wj1c.push.wechat.request.base.RequestMethod;
import com.wj1c.push.wechat.response.AccessTokenResponse;

/**
 * @author: Mr.Jiao
 * @date: 2018年09月03日
 */
public class AccessTokenRequest extends AbstractRequest<AccessTokenResponse> {


    public AccessTokenRequest() {
        super("https://api.weixin.qq.com/cgi-bin/token");

        super.set("grant_type", "client_credential");
    }

    @Override
    public RequestMethod getMethod() {
        return RequestMethod.GET;
    }

    @Override
    public Class<AccessTokenResponse> getResponseClass() {
        return AccessTokenResponse.class;
    }

    @Override
    public void setAppidAndSecret(String appid, String secret) {
        super.setAppidAndSecret(appid, secret);
    }
}
